package come.whvc

object Test2 {
  def main(args: Array[String]): Unit = {
    val recordCount = 4500

    val strategy =
      if (recordCount < 5000) "light-check"
      else "full-check"

    for (hour <- 0 until 3) {
      println(s"[$strategy] 执行第 ${hour + 1} 次抽样校验")
    }
    val errorRate: Double = 0.02

    val status =
      if (errorRate < 0.01) "healthy"
      else "alert"

    println(status)

    for (i <- 1 to 3) {
      println(s"ALERT #$i")
    }
  }

}
